

Route::group(function () {
    //抽卡
        Route::get("/card_index", "app\admin\controller\Card@card_list")->name("card.index");// 列表
        Route::get("/card_log", "app\admin\controller\Card@card_log")->name("card.card_log");// 抽卡记录
        Route::post("/card_log_export", "app\admin\controller\Card@card_log_export")->name("card.log_export");// 记录导出
        Route::post("/card_delete", "app\admin\controller\Card@delete")->name("card.delete");// 删除
        Route::post("/card_create", "app\admin\controller\Card@create")->name("card.create");// 创建  
        Route::post("/card_edit", "app\admin\controller\Card@edit")->name("card.edit");// 编辑
        Route::get("/card_detail", "app\admin\controller\Card@detail")->name("card.detail");// 详情
        Route::post("/card_add_stock", "app\admin\controller\Card@add_stock")->name("card.add_stock");// 添加库存
    })
->allowCrossDomain()// 跨域
->middleware(middleware\Auth::class)// jwt认证
->middleware(middleware\Permission::class);// 权限认证